QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# add console to view stdout logs
CONFIG += c++11 console
DESTDIR = $$PWD/../dist

# FFmpegLib ====================================================================
FFMPEGLIB_DIR=D:/Projects/OpenSource/ffmpeg-build/ffmpeg-N-105193-g2b541b8c1d-20220106-win64-shared
include($$FFMPEGLIB_DIR/ffmpeg-lib.pri)

ffmpeglib.path = $$DESTDIR
ffmpeglib.files = $$FFMPEGLIB_DIR/bin/avcodec-59.dll $$FFMPEGLIB_DIR/bin/avformat-59.dll \
    $$FFMPEGLIB_DIR/bin/swscale-6.dll $$FFMPEGLIB_DIR/bin/avfilter-8.dll $$FFMPEGLIB_DIR/bin/avutil-57.dll \
    $$FFMPEGLIB_DIR/bin/swresample-4.dll $$FFMPEGLIB_DIR/bin/avdevice-59.dll
INSTALLS += ffmpeglib

# FFmpegETU ====================================================================
include($$PWD/FFmpegETU/FFmpegETU.pri)

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    Recorder.cpp \
    main.cpp \
    MainWindow.cpp

HEADERS += \
    MainWindow.h \
    Recorder.h \
    RecorderDefine.h \

FORMS += \
    MainWindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
